package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.qo.StatementQuery;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface StatementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Statement record);

    Statement selectByPrimaryKey(Long id);

    List<Statement> selectAll();

    int updateByPrimaryKey(Statement record);

    List<Statement> selectForList(StatementQuery qo);

    void saveItemPay(@Param("totalAmount") BigDecimal totalAmount, @Param("statementId") Long statementId, @Param("discountAmount") BigDecimal discountAmount, @Param("totalQuantity") BigDecimal totalQuantity);


    void payFun(@Param("statementId") Long statementId, @Param("date") Date date, @Param("principal") Long principal, @Param("statusPaid") Integer statusPaid);

    Statement selectAppintement(Long id);

}